<!doctype html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" th:href="@{css/structure.css}">
    <link rel="stylesheet" th:href="@{css/password.css}">
    <script th:src="@{js/jquery-1.11.3.js}"></script>
    <script th:src="@{js/content.js}"></script>
</head>
<div class="inner">
    <div class="in_title">
        位置：<a href="admin">首页</a> ><a href="javascript:;">增加项目</a>
    </div>
    <ul class="in_inner">
        <form action="add1" method="post" th:object="${promodel.project}">
            <li>
                <div class="span">项目名称：</div>
                <input type="text" name="pname" th:value = "*{pname}">
            </li>
            <li>
                <div class="span">类型：</div>
                <select name="tno" th:value = "*{tno}">
                    <option value="1">关于学习</option>
                    <option value="2">关于住宿</option>
                    <option value="3">关于食堂</option>
                    <option value="4">关于生活</option>
                </select>
            </li>
            <li>
                <div class="span">项目特色：</div>
                <input type="text" name="remarks" th:value = "*{remarks}">
            </li>
            <li style="height: 90px;">
                <div class="span">项目描述：</div>
                <input type="text" name="detail" th:value = "*{detail}" style="height: 90px">
            </li>
            <li >
                <div class="span" >项目图片：</div>
                <input type="text" name="pimg" th:value = "*{pimg}">
            </li>
            <input type="hidden" name="pdate" id="pdate" value="" style=" display:none"/>
            <input type="submit" value="提交" class="ture" id="astrq"/>
            <input type="reset" class="false" id="astro">
        </form>
    </ul>
</div>
<script type="text/javascript">
    window.onload = function(){
        var nowDate = new Date();
        var str = nowDate.getFullYear()+"-"+(nowDate.getMonth() + 1)+"-"+nowDate.getDate()+":"+(nowDate.getHours()+":"+nowDate.getMinutes());
        document.getElementById("pdate").value=str;
    }
</script>
</body>
</html>